package cn.csc.module.product.controller.admin.spu.vo;

import cn.csc.module.product.validated.Verify1;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigInteger;
import java.util.List;

/**
 * @author: 云隐
 * @Date: 2024/01/09
 **/
@ApiModel("管理后台 - spu信息创建 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SpuCreateDataReqVO extends SpuBaseVO {

    @NotNull(message = "商品ID不能为空", groups = {Verify1.class})
    private BigInteger id;

    @NotNull(message = "商品详情不能为空")
    private String detail;

    @NotNull(message = "商品详情图片不能为空")
    private String detailImg;

    @Size(min = 2,max = 20,message = "超过数量限制,最少两条,最多不超过20条")
    private List<SkuAttrCreateReqV2VO> skuAttr;
}
